<script>
import BaseDataBox from '../common/BaseDataBox';
import { reqPost } from 'global/axios';
import storage from 'good-storage';

export default {
  extends: BaseDataBox,

  data() {
    return {
      title: '待处理事件',
      icon: 'jubao',
      value: '',
    };
  },

  async mounted() {
    let { status, result } = await reqPost({
      data: {
        river_name: '测试河|#|ne',
        solve_is: '处理中',
        addparam: true,
        basis: 5
      },
      url: '/emergency/report/count',
    });

    if (status) {
      this.value = result;
      this.$Message.info(`您的待处理事件还有${this.value}条`);
    }
  },

  methods: {
    click() {
      this.$router.push('/home/chief-wechat');
    },
  },
};
</script>